package cn.zhou.service.impl;

import cn.zhou.domain.User;
import cn.zhou.mapper.UserMapper;
import cn.zhou.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zy9524
 * @date 2019/6/9 19:49
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User findUserByUsernameAndPassword(String username, String password) {
        return userMapper.findUserByUsernameAndPassword(username,password);
    }

    @Override
    public List<User> findAllUser() {
        return userMapper.findAllUser();
    }
}
